home *** CD-ROM | disk | FTP | other *** search
- /* instruct the default UMS server to physically remove deleted messages */
-
- libname = "ums.library"
-
- if ~show("L", libname) then do
- if ~addlib(libname, 0, -210, 8) then do
- say libname "not found!"
- exit
- end
- end
-
- UMSERR_ok = 0
- UMSERR_noWork = 106
-
- say "cleaning message base..."
- err = CleanUMS()
- if err = UMSERR_ok then do
- say "successful."
- exit 0
- end; else if err = UMSERR_noWork then do
- say "nothing to do."
- exit 5
- end; else do
- say "failed. UMSErr #" || err
- exit 20
- end
-